<div class="pb75 pt60 ng-scope">
<header class="bg1">
	<span class="return"><a ng-click="$location.back()" href=""><img src="img/11.png"/></a></span>
	<p class="title">热点议题详情</p>
	<span class="more" ng-show="more"><img src="img/icon-more-1.png" style="width:24px;height:20px;"></span>
	<div class="pop-window1" >
	<img src="img/icon-jian5.png" class="j"/><div class="cb"></div>
	<ul>
		<li ><a href="" ng-click="$location.path('/redian-edit')" ><img src="img/icon-edit201512.png"/> 编辑</a></li>
		<li ><a href="javascript:void(0)" id="del" ><img src="img/icon-del201512.png"/> 删除</a></li>
	</ul>
	</div>
</header>
<section class="mlr10 mt15">
	<p class="title-1">{{::hotfocus.current.title}}</p>
	<p class="title-2 clearfix"><span class="time">{{::formatDate(hotfocus.current.createTime)}}</span><span class="name">创建人：{{::hotfocus.current.publisherName}}</span></p>
</section>
<section class="mt10">
	<ul class="list-3">
		<li class="clearfix">
			<span class="l"><img src="img/i-xq-3.jpg"/>描述</span><span class="r" style="word-break:break-all;">{{::hotfocus.current.content}}</span>
		</li>
		<li class="clearfix">
			<span class="l"><img src="img/i-xq-5.jpg"/>相片</span>
			<span class="r">
				<a ng-repeat="pic in ::hotfocus.current.picAttachmentList" ng-click="fileClicked('相片', pic.fileUrl)" href="" class="pic">
					<img ng-src="{{::pic.thumbnailUrl}}" style="width:100%;"/>
				</a>
			</span>
		</li>
		<li class="clearfix">
			<span class="l"><img src="img/i-xq-7.jpg"/>视频</span>
			<span class="r">
				<a ng-repeat="v in ::hotfocus.current.videoAttachmentList" ng-click="fileClicked('视频', v.fileUrl)" href="" class="pic">
					<img ng-src="{{::v.thumbnailUrl}}" style="width:100%;"/>
				</a>
			</span>
		</li>
	</ul>
</section>
<section ng-show="showComments" class="mt10 mlr10">
	<div class="clearfix snsblock"><a href="" class="c"><img src="img/i-commend.png"/>{{hotfocus.current.totalCommentNum}} 评论</a>
	<a href="" class="z" ng-click="doLike()">
	<img src="img/i-zan.png" ng-if="!isVote"/>
	<img src="img/i-zanon.png" ng-if="isVote"/><i>点赞</i></a></div>
</section>
<section ng-show="showComments" class="mt20 mlr20 commendblock" my-scroll="load()">
	<span class="j" ng-show="voteMembers.length > 0 || comments.length > 0"><img src="img/i-jian-1.png"/></span>
	<div ng-show="voteMembers.length > 0"><img src="img/i-zan.png"/><i>{{voteMemberStr}}</i></div>
	<ul class="list-5">
		<li class="clearfix" ng-repeat="c in comments track by c.id">
			<span class="i"><img ng-src="{{::(c.creatorAvatarUrl || 'img/tem-img/img-person.jpg')}}"/></span>
			<div class="r">
			<p class="name">{{::c.creatorCName}}</p>
			<p class="txt">{{::c.content}}</p>
			<p class="time">{{::formatDate(c.createTime)}}</p>
			</div>
		</li>
	</ul>
</section>
<section ng-show="showComments" class="comformblock">
<div class="comformblock1">
	<div class="comform">
		<input type="text" ng-model="newComment" class="i" placeholder="随便说说什么"/>
		<input type="button" ng-click="save()"  class="b"/>
	</div>
</div>
</section>
<!--pop window-->
<div id="zoomscrollblock">
    <div id="zoomscroll" class="pop_catewindow">
        <div class="i-block20151214-6">
			<p class="txt-24">确定要删除该议题么？</p>
			<div class="line-1"></div>
			<p class="txt-25"><a ng-click="del()" href="">确定</a><a href="javascript:void(0);">取消</a><span class="line"></span></p>
		</div>
    </div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	$("header .more").click(function(){
		if($(".pop-window1").height()== "0"){
			$(".pop-window1").animate({height:100},300);
		}else{
			$(".pop-window1").animate({height:0},300);
		}
	});
	$(".snsblock a.z").click(function(){
		if($(this).find("img").attr("src") == "img/i-zan.png"){
			$(this).find("img").attr("src","img/i-zanon.png");
			$(this).find("i").html("已赞");
		}else{
			$(this).find("img").attr("src","img/i-zan.png");
			$(this).find("i").html("点赞");
		}
	});
	//弹窗弹出状态
	$(".pop-window1 #del").click(function(){
		$("#zoomscroll").addClass("loaded").animate({opacity:1},200);
		$(document.body).addClass("noscroll");
		$(".txt-25 a").click(function(){
			$(".pop-window1").animate({height:0},50);
			$("#zoomscroll").animate({opacity:0},200);
			setTimeout(function(){$('#zoomscroll').removeClass('loaded');$(document.body).removeClass("noscroll");$("#zoom").html("");},400);
		});
	});
});
</script>
</div>